package com.xdxc.model.form;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class ExamForm {
    @NotBlank
    private String title;

    @NotNull
    private LocalDateTime startTime;

    @NotNull
    private LocalDateTime endTime;


    private Integer passScore;


    private Integer duration; // 考试时长（秒）

    private Integer totalScore;
    private Integer chance;
    private Integer lateMax; // 最大迟到时间

    @JsonSerialize(using = ToStringSerializer.class)
    private Long paperId; // 试卷ID

    private Integer openType;

    // 其他必要字段...
}
